package lt.marsrutai.mobile.android.model;

import java.io.Serializable;

public class TrackBookmark implements Serializable {

    private static final long serialVersionUID = -7228378291856775463L;

    private String scope;
    private String trackId;

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getTrackId() {
        return trackId;
    }

    public void setTrackId(String trackId) {
        this.trackId = trackId;
    }

    @Override
    public String toString() {
        return "TrackBookmark [scope=" + scope + ", trackId=" + trackId + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((scope == null) ? 0 : scope.hashCode());
        result = prime * result + ((trackId == null) ? 0 : trackId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        TrackBookmark other = (TrackBookmark) obj;
        if (scope == null) {
            if (other.scope != null) {
                return false;
            }
        }
        else if (!scope.equals(other.scope)) {
            return false;
        }
        if (trackId == null) {
            if (other.trackId != null) {
                return false;
            }
        }
        else if (!trackId.equals(other.trackId)) {
            return false;
        }
        return true;
    }

}
